﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master"
    CodeBehind="CompanyList_PS.aspx.cs" Inherits="HZ.Supervise.Web.Company.CompanyList_PS"
    Title="配送企业列表(高值)" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 146px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">

        document.body.onkeydown = function () {

            var btn = document.getElementById("<%=GetBtnClientId() %>");

            if (event.keyCode == 13) {

                btn.click();

                event.returnValue = false;
            }

        }

    </script>
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0)">配送企业列表(高值)</a></li>
            <li><a href="CompanyList_PS_DZ.aspx">配送企业列表(低值)</a></li>
        </ul> 
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td width="100%">
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                &nbsp;<asp:Label ID="Label1" runat="server" Text="配送企业："></asp:Label>
                            </td>
                            <td align="left" class="style1">
                                <asp:TextBox ID="txtCompanyPS" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                所在地区：
                            </td>
                            <td align="left">
                                <%--<asp:DropDownList ID="ddlProvice" Enabled="false" runat="server" Width="80px">
                                    <asp:ListItem Value="510000">四川省</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;<asp:DropDownList ID="ddlCity" runat="server" Width="80px">
                                    <asp:ListItem Value="">所在城市</asp:ListItem>
                                    <asp:ListItem Value="510100">成都市</asp:ListItem>
                                    <asp:ListItem Value="513300">甘孜藏族自治州</asp:ListItem>
                                    <asp:ListItem Value="513400">凉山彝族自治州</asp:ListItem>
                                    <asp:ListItem Value="510300">自贡市</asp:ListItem>
                                    <asp:ListItem Value="510400">攀枝花市</asp:ListItem>
                                    <asp:ListItem Value="510500">泸州市</asp:ListItem>
                                    <asp:ListItem Value="510600">德阳市</asp:ListItem>
                                    <asp:ListItem Value="510700">绵阳市</asp:ListItem>
                                    <asp:ListItem Value="510800">广元市</asp:ListItem>
                                    <asp:ListItem Value="510900">遂宁市</asp:ListItem>
                                    <asp:ListItem Value="511000">内江市</asp:ListItem>
                                    <asp:ListItem Value="511100">乐山市</asp:ListItem>
                                    <asp:ListItem Value="511300">南充市</asp:ListItem>
                                    <asp:ListItem Value="511400">眉山市</asp:ListItem>
                                    <asp:ListItem Value="511500">宜宾市</asp:ListItem>
                                    <asp:ListItem Value="511600">广安市</asp:ListItem>
                                    <asp:ListItem Value="511700">达州市</asp:ListItem>
                                    <asp:ListItem Value="511800">雅安市</asp:ListItem>
                                    <asp:ListItem Value="511900">巴中市</asp:ListItem>
                                    <asp:ListItem Value="512000">资阳市</asp:ListItem>
                                    <asp:ListItem Value="513200">阿坝藏族羌族自治州</asp:ListItem>
                                </asp:DropDownList>--%>
                                <uc3:AreaControl ID="ddlArea"  runat="server"/>
                            </td>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td align="left">
                                <hz:HzButton ID="btnQuery" runat="server" Text="单内查询" OnClick="btnQuery_Click" CssClass="btn" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwPSLInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
        AllowSorting="True" EmptyDataText="暂无符合条件的数据！" DataKeyNames="">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager_CompanyList_PS.PageSize * (AspNetPager_CompanyList_PS.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <a href='CompanyGoodsList_ps.aspx?Companyid_PS=<%# Eval("Companyid_PS")%>&comname=<%# Eval("CompanyName_PS")%>'>
                        <%# Eval("CompanyName_PS")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" Visible="false" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span><span
                style="width: 70%; text-align: right; float: right"><webdiyer:AspNetPager ID="AspNetPager_CompanyList_PS"
                    runat="server" OnPageChanged="CompanyList_PS_PageChanged">
                </webdiyer:AspNetPager>
            </span>
    </div>
    <br />
     <div class="listip">
        <ul>
            <li>说明:<span style="color:Red;">请选择地区再查询相关数据</span></li>
        </ul>
    </div>
</asp:Content>
